home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 June: Reference Library / Dev.CD Jun 95 / Dev.CD Jun 95.toast / What's New? / Tool Chest / Interfaces / UniversalInterfaces 2.1B1 / AIncludes / Controls.a < prev    next >
Encoding:
Text File  |  1995-04-18  |  16.2 KB  |  602 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Controls.a
  3. ;
  4. ;    Contains:    Control Manager interfaces
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.1ß1 in “MPW Prerelease” on ETO #17
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__CONTROLS__') = 'UNDEFINED' THEN
  21. __CONTROLS__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27. ;        include 'ConditionalMacros.a'                                ;
  28.  
  29.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  30.     include 'Quickdraw.a'
  31.     ENDIF
  32. ;        include 'MixedMode.a'                                        ;
  33. ;        include 'QuickdrawText.a'                                    ;
  34.  
  35.     IF &TYPE('__MENUS__') = 'UNDEFINED' THEN
  36.     include 'Menus.a'
  37.     ENDIF
  38. ;        include 'Memory.a'                                            ;
  39.     IF &TYPE('STRICT_CONTROLS') = 'UNDEFINED' THEN
  40.     STRICT_CONTROLS: SET 0
  41.     ENDIF
  42.  
  43. pushButProc                        EQU        0
  44. checkBoxProc                    EQU        1
  45. radioButProc                    EQU        2
  46. scrollBarProc                    EQU        16
  47. popupMenuProc                    EQU        1008
  48.  
  49. kControlUsesOwningWindowsFontVariant EQU        1 << 3            ; Control uses owning windows font to display text
  50.  
  51.     IF OLDROUTINENAMES  THEN
  52. useWFont                        EQU        8
  53.  
  54.     ENDIF
  55. ; typedef SInt16             ControlPartCode
  56.  
  57. kControlNoPart                    EQU        0
  58. kControlLabelPart                EQU        1
  59. kControlMenuPart                EQU        2
  60. kControlTrianglePart            EQU        4
  61. kControlButtonPart                EQU        10
  62. kControlCheckBoxPart            EQU        11
  63. kControlRadioButtonPart            EQU        11
  64. kControlUpButtonPart            EQU        20
  65. kControlDownButtonPart            EQU        21
  66. kControlPageUpPart                EQU        22
  67. kControlPageDownPart            EQU        23
  68. kControlIndicatorPart            EQU        129
  69. kControlDisabledPart            EQU        254
  70. kControlInactivePart            EQU        255
  71.  
  72.     IF OLDROUTINENAMES  THEN
  73. inLabel                            EQU        1
  74. inMenu                            EQU        2
  75. inTriangle                        EQU        4
  76. inButton                        EQU        10
  77. inCheckBox                        EQU        11
  78. inUpButton                        EQU        20
  79. inDownButton                    EQU        21
  80. inPageUp                        EQU        22
  81. inPageDown                        EQU        23
  82. inThumb                            EQU        129
  83.  
  84.     ENDIF
  85. kControlCheckboxUncheckedValue    EQU        0
  86. kControlCheckboxCheckedValue    EQU        1
  87. kControlCheckboxMixedValue        EQU        2
  88.  
  89. ;_________________________________________________________________________________________________________
  90. ;
  91. ; • RADIO BUTTON VALUES
  92. ;
  93. ;_________________________________________________________________________________________________________
  94. kControlRadioButtonUncheckedValue EQU        0
  95. kControlRadioButtonCheckedValue    EQU        1
  96. kControlRadioButtonMixedValue    EQU        2
  97.  
  98. popupFixedWidth                    EQU        1 << 0
  99. popupVariableWidth                EQU        1 << 1
  100. popupUseAddResMenu                EQU        1 << 2
  101. popupUseWFont                    EQU        1 << 3
  102.  
  103. ;
  104. ; Menu label styles for the System 7 pop-up menu 
  105. ;
  106. popupTitleBold                    EQU        1 << 8
  107. popupTitleItalic                EQU        1 << 9
  108. popupTitleUnderline                EQU        1 << 10
  109. popupTitleOutline                EQU        1 << 11
  110. popupTitleShadow                EQU        1 << 12
  111. popupTitleCondense                EQU        1 << 13
  112. popupTitleExtend                EQU        1 << 14
  113. popupTitleNoStyle                EQU        1 << 15
  114.  
  115. ;
  116. ; Menu label justifications for the System 7 pop-up menu
  117. ;
  118. popupTitleLeftJust                EQU        $00000000
  119. popupTitleCenterJust            EQU        $00000001
  120. popupTitleRightJust                EQU        $000000FF
  121.  
  122. ;_________________________________________________________________________________________________________
  123. ;
  124. ; • CONTROL DRAGGRAYRGN CONSTANTS
  125. ;
  126. noConstraint                    EQU        kNoConstraint
  127. hAxisOnly                        EQU        1
  128. vAxisOnly                        EQU        2
  129.  
  130. ;_________________________________________________________________________________________________________
  131. ;
  132. ; • CONTROL COLOR TABLE PART CODES
  133. ;
  134. cFrameColor                        EQU        0
  135. cBodyColor                        EQU        1
  136. cTextColor                        EQU        2
  137. cThumbColor                        EQU        3
  138.  
  139. ;_________________________________________________________________________________________________________
  140. ;
  141. ; • CONTROL TYPE DECLARATIONS
  142. ;
  143. ;_________________________________________________________________________________________________________
  144. ;
  145. ; Define ControlRef and ControlHandle
  146. ;
  147.     IF STRICT_CONTROLS  THEN
  148. ; typedef ControlRef         ControlHandle
  149.     ELSE
  150. ; typedef struct ControlRecord  ControlRecord, *ControlPtr, **ControlHandle
  151. ; typedef ControlHandle     ControlRef
  152.     ENDIF
  153. CtlCTab                 RECORD    0
  154. ccSeed                     ds.l   1        ; offset: $0 (0)
  155. ccRider                     ds.w   1        ; offset: $4 (4)
  156. ctSize                     ds.w   1        ; offset: $6 (6)
  157. ctTable                     ds.b   4 * ColorSpec.sizeof ; offset: $8 (8)
  158. sizeof                     EQU *            ; size:   $28 (40)
  159.                         ENDR
  160.  
  161. ; typedef struct CtlCTab     CtlCTab
  162. ; typedef CtlCTab             *CCTabPtr, **CCTabHandle
  163.     IF ¬ STRICT_CONTROLS  THEN
  164. ControlRecord             RECORD    0
  165. nextControl                 ds.l   1        ; offset: $0 (0)
  166. contrlOwner                 ds.l   1        ; offset: $4 (4)
  167. contrlRect                 ds     Rect    ; offset: $8 (8)
  168. contrlVis                 ds.b   1        ; offset: $10 (16)
  169. contrlHilite             ds.b   1        ; offset: $11 (17)
  170. contrlValue                 ds.w   1        ; offset: $12 (18)
  171. contrlMin                 ds.w   1        ; offset: $14 (20)
  172. contrlMax                 ds.w   1        ; offset: $16 (22)
  173. contrlDefProc             ds.l   1        ; offset: $18 (24)
  174. contrlData                 ds.l   1        ; offset: $1C (28)
  175. contrlAction             ds.l   1        ; offset: $20 (32)
  176. contrlRfCon                 ds.l   1        ; offset: $24 (36)
  177. contrlTitle                 ds.l   64        ; offset: $28 (40)
  178. sizeof                     EQU *            ; size:   $128 (296)
  179.                         ENDR
  180.  
  181. ;_________________________________________________________________________________________________________
  182. ;
  183. ; • AUXILLARY CONTROL RECORD STRUCTURE
  184. ;
  185. ;_________________________________________________________________________________________________________
  186. AuxCtlRec                 RECORD    0
  187. acNext                     ds.l   1        ; offset: $0 (0)
  188. acOwner                     ds.l   1        ; offset: $4 (4)
  189. acCTable                 ds.l   1        ; offset: $8 (8)
  190. acFlags                     ds.w   1        ; offset: $C (12)
  191. acReserved                 ds.l   1        ; offset: $E (14)
  192. acRefCon                 ds.l   1        ; offset: $12 (18)
  193. sizeof                     EQU *            ; size:   $16 (22)
  194.                         ENDR
  195.  
  196. ; typedef struct AuxCtlRec     AuxCtlRec
  197. ; typedef AuxCtlRec         *AuxCtlPtr, **AuxCtlHandle
  198. ;_________________________________________________________________________________________________________
  199. ;
  200. ; • POP-UP MENU PRIVATE DATA STRUCTURE
  201. ;
  202. ;_________________________________________________________________________________________________________
  203. PopupPrivateData         RECORD    0
  204. mHandle                     ds.l   1        ; offset: $0 (0)
  205. mID                         ds.w   1        ; offset: $4 (4)
  206. sizeof                     EQU *            ; size:   $6 (6)
  207.                         ENDR
  208.  
  209. ; typedef struct PopupPrivateData  PopupPrivateData
  210. ; typedef PopupPrivateData     *PopupPrivateDataPtr, **PopupPrivateDataHandle
  211.     ENDIF
  212. ;
  213. ; pascal ControlRef NewControl(WindowRef theWindow, const Rect *boundsRect, ConstStr255Param title, Boolean visible, SInt16 value, SInt16 min, SInt16 max, SInt16 procID, SInt32 refCon)
  214. ;
  215.     IF ¬ GENERATINGCFM THEN
  216.         _NewControl:    OPWORD    $A954
  217.     ELSE
  218.         IMPORT_CFM_FUNCTION    NewControl
  219.     ENDIF
  220.  
  221. ;
  222. ; pascal ControlRef GetNewControl(SInt16 controlID, WindowRef owner)
  223. ;
  224.     IF ¬ GENERATINGCFM THEN
  225.         _GetNewControl:    OPWORD    $A9BE
  226.     ELSE
  227.         IMPORT_CFM_FUNCTION    GetNewControl
  228.     ENDIF
  229.  
  230. ;
  231. ; pascal void DisposeControl(ControlRef theControl)
  232. ;
  233.     IF ¬ GENERATINGCFM THEN
  234.         _DisposeControl:    OPWORD    $A955
  235.     ELSE
  236.         IMPORT_CFM_FUNCTION    DisposeControl
  237.     ENDIF
  238.  
  239. ;
  240. ; pascal void KillControls(WindowRef theWindow)
  241. ;
  242.     IF ¬ GENERATINGCFM THEN
  243.         _KillControls:    OPWORD    $A956
  244.     ELSE
  245.         IMPORT_CFM_FUNCTION    KillControls
  246.     ENDIF
  247.  
  248. ;_________________________________________________________________________________________________________
  249. ;    
  250. ; • CONTROL SHOWING/HIDING API'S
  251. ;
  252. ;_________________________________________________________________________________________________________
  253. ;
  254. ; pascal void ShowControl(ControlRef theControl)
  255. ;
  256.     IF ¬ GENERATINGCFM THEN
  257.         _ShowControl:    OPWORD    $A957
  258.     ELSE
  259.         IMPORT_CFM_FUNCTION    ShowControl
  260.     ENDIF
  261.  
  262. ;
  263. ; pascal void HideControl(ControlRef theControl)
  264. ;
  265.     IF ¬ GENERATINGCFM THEN
  266.         _HideControl:    OPWORD    $A958
  267.     ELSE
  268.         IMPORT_CFM_FUNCTION    HideControl
  269.     ENDIF
  270.  
  271. ;_________________________________________________________________________________________________________
  272. ;    
  273. ; • CONTROL DRAWING API'S
  274. ;
  275. ;_________________________________________________________________________________________________________
  276. ;
  277. ; pascal void DrawControls(WindowRef theWindow)
  278. ;
  279.     IF ¬ GENERATINGCFM THEN
  280.         _DrawControls:    OPWORD    $A969
  281.     ELSE
  282.         IMPORT_CFM_FUNCTION    DrawControls
  283.     ENDIF
  284.  
  285. ;
  286. ; pascal void Draw1Control(ControlRef theControl)
  287. ;
  288.     IF ¬ GENERATINGCFM THEN
  289.         _Draw1Control:    OPWORD    $A96D
  290.     ELSE
  291.         IMPORT_CFM_FUNCTION    Draw1Control
  292.     ENDIF
  293.  
  294. ;
  295. ; pascal void UpdateControls(WindowRef theWindow, RgnHandle updateRgn)
  296. ;
  297.     IF ¬ GENERATINGCFM THEN
  298.         _UpdateControls:    OPWORD    $A953
  299.     ELSE
  300.         IMPORT_CFM_FUNCTION    UpdateControls
  301.     ENDIF
  302.  
  303. ;
  304. ; pascal void HiliteControl(ControlRef theControl, ControlPartCode hiliteState)
  305. ;
  306.     IF ¬ GENERATINGCFM THEN
  307.         _HiliteControl:    OPWORD    $A95D
  308.     ELSE
  309.         IMPORT_CFM_FUNCTION    HiliteControl
  310.     ENDIF
  311.  
  312. ;
  313. ; pascal ControlPartCode TrackControl(ControlRef theControl, Point thePoint, ControlActionUPP actionProc)
  314. ;
  315.     IF ¬ GENERATINGCFM THEN
  316.         _TrackControl:    OPWORD    $A968
  317.     ELSE
  318.         IMPORT_CFM_FUNCTION    TrackControl
  319.     ENDIF
  320.  
  321. ;
  322. ; pascal void DragControl(ControlRef theControl, Point startPt, const Rect *limitRect, const Rect *slopRect, DragConstraint axis)
  323. ;
  324.     IF ¬ GENERATINGCFM THEN
  325.         _DragControl:    OPWORD    $A967
  326.     ELSE
  327.         IMPORT_CFM_FUNCTION    DragControl
  328.     ENDIF
  329.  
  330. ;
  331. ; pascal ControlPartCode TestControl(ControlRef theControl, Point thePt)
  332. ;
  333.     IF ¬ GENERATINGCFM THEN
  334.         _TestControl:    OPWORD    $A966
  335.     ELSE
  336.         IMPORT_CFM_FUNCTION    TestControl
  337.     ENDIF
  338.  
  339. ;
  340. ; pascal ControlPartCode FindControl(Point thePoint, WindowRef theWindow, ControlRef *theControl)
  341. ;
  342.     IF ¬ GENERATINGCFM THEN
  343.         _FindControl:    OPWORD    $A96C
  344.     ELSE
  345.         IMPORT_CFM_FUNCTION    FindControl
  346.     ENDIF
  347.  
  348. ;_________________________________________________________________________________________________________
  349. ;    
  350. ; • CONTROL MOVING/SIZING API'S
  351. ;
  352. ;_________________________________________________________________________________________________________
  353. ;
  354. ; pascal void MoveControl(ControlRef theControl, SInt16 h, SInt16 v)
  355. ;
  356.     IF ¬ GENERATINGCFM THEN
  357.         _MoveControl:    OPWORD    $A959
  358.     ELSE
  359.         IMPORT_CFM_FUNCTION    MoveControl
  360.     ENDIF
  361.  
  362. ;
  363. ; pascal void SizeControl(ControlRef theControl, SInt16 w, SInt16 h)
  364. ;
  365.     IF ¬ GENERATINGCFM THEN
  366.         _SizeControl:    OPWORD    $A95C
  367.     ELSE
  368.         IMPORT_CFM_FUNCTION    SizeControl
  369.     ENDIF
  370.  
  371. ;_________________________________________________________________________________________________________
  372. ;    
  373. ; • CONTROL TITLE API'S
  374. ;
  375. ;_________________________________________________________________________________________________________
  376. ;
  377. ; pascal void SetControlTitle(ControlRef theControl, ConstStr255Param title)
  378. ;
  379.     IF ¬ GENERATINGCFM THEN
  380.         _SetControlTitle:    OPWORD    $A95F
  381.     ELSE
  382.         IMPORT_CFM_FUNCTION    SetControlTitle
  383.     ENDIF
  384.  
  385. ;
  386. ; pascal void GetControlTitle(ControlRef theControl, Str255 title)
  387. ;
  388.     IF ¬ GENERATINGCFM THEN
  389.         _GetControlTitle:    OPWORD    $A95E
  390.     ELSE
  391.         IMPORT_CFM_FUNCTION    GetControlTitle
  392.     ENDIF
  393.  
  394. ;_________________________________________________________________________________________________________
  395. ;    
  396. ; • CONTROL VALUE, MIMIMUM, AND MAXIMUM API'S
  397. ;
  398. ;_________________________________________________________________________________________________________
  399. ;
  400. ; pascal SInt16 GetControlValue(ControlRef theControl)
  401. ;
  402.     IF ¬ GENERATINGCFM THEN
  403.         _GetControlValue:    OPWORD    $A960
  404.     ELSE
  405.         IMPORT_CFM_FUNCTION    GetControlValue
  406.     ENDIF
  407.  
  408. ;
  409. ; pascal void SetControlValue(ControlRef theControl, SInt16 newValue)
  410. ;
  411.     IF ¬ GENERATINGCFM THEN
  412.         _SetControlValue:    OPWORD    $A963
  413.     ELSE
  414.         IMPORT_CFM_FUNCTION    SetControlValue
  415.     ENDIF
  416.  
  417. ;
  418. ; pascal SInt16 GetControlMinimum(ControlRef theControl)
  419. ;
  420.     IF ¬ GENERATINGCFM THEN
  421.         _GetControlMinimum:    OPWORD    $A961
  422.     ELSE
  423.         IMPORT_CFM_FUNCTION    GetControlMinimum
  424.     ENDIF
  425.  
  426. ;
  427. ; pascal void SetControlMinimum(ControlRef theControl, SInt16 newMinimum)
  428. ;
  429.     IF ¬ GENERATINGCFM THEN
  430.         _SetControlMinimum:    OPWORD    $A964
  431.     ELSE
  432.         IMPORT_CFM_FUNCTION    SetControlMinimum
  433.     ENDIF
  434.  
  435. ;
  436. ; pascal SInt16 GetControlMaximum(ControlRef theControl)
  437. ;
  438.     IF ¬ GENERATINGCFM THEN
  439.         _GetControlMaximum:    OPWORD    $A962
  440.     ELSE
  441.         IMPORT_CFM_FUNCTION    GetControlMaximum
  442.     ENDIF
  443.  
  444. ;
  445. ; pascal void SetControlMaximum(ControlRef theControl, SInt16 newMaximum)
  446. ;
  447.     IF ¬ GENERATINGCFM THEN
  448.         _SetControlMaximum:    OPWORD    $A965
  449.     ELSE
  450.         IMPORT_CFM_FUNCTION    SetControlMaximum
  451.     ENDIF
  452.  
  453. ;_________________________________________________________________________________________________________
  454. ;    
  455. ; • CONTROL VARIANT AND WINDOW INFORMATION API'S
  456. ;
  457. ;_________________________________________________________________________________________________________
  458. ;
  459. ; pascal SInt16 GetControlVariant(ControlRef theControl)
  460. ;
  461.     IF ¬ GENERATINGCFM THEN
  462.         _GetControlVariant:    OPWORD    $A809
  463.     ELSE
  464.         IMPORT_CFM_FUNCTION    GetControlVariant
  465.     ENDIF
  466.  
  467. ;
  468. ; pascal void SetControlAction(ControlRef theControl, ControlActionUPP actionProc)
  469. ;
  470.     IF ¬ GENERATINGCFM THEN
  471.         _SetControlAction:    OPWORD    $A96B
  472.     ELSE
  473.         IMPORT_CFM_FUNCTION    SetControlAction
  474.     ENDIF
  475.  
  476. ;
  477. ; pascal ControlActionUPP GetControlAction(ControlRef theControl)
  478. ;
  479.     IF ¬ GENERATINGCFM THEN
  480.         _GetControlAction:    OPWORD    $A96A
  481.     ELSE
  482.         IMPORT_CFM_FUNCTION    GetControlAction
  483.     ENDIF
  484.  
  485. ;_________________________________________________________________________________________________________
  486. ;    
  487. ; • CONTROL ACCESSOR API'S
  488. ;
  489. ;_________________________________________________________________________________________________________
  490. ;
  491. ; pascal void SetControlReference(ControlRef theControl, SInt32 data)
  492. ;
  493.     IF ¬ GENERATINGCFM THEN
  494.         _SetControlReference:    OPWORD    $A95B
  495.     ELSE
  496.         IMPORT_CFM_FUNCTION    SetControlReference
  497.     ENDIF
  498.  
  499. ;
  500. ; pascal SInt32 GetControlReference(ControlRef theControl)
  501. ;
  502.     IF ¬ GENERATINGCFM THEN
  503.         _GetControlReference:    OPWORD    $A95A
  504.     ELSE
  505.         IMPORT_CFM_FUNCTION    GetControlReference
  506.     ENDIF
  507.  
  508.     IF ¬ STRICT_CONTROLS  THEN
  509. ;
  510. ; pascal Boolean GetAuxiliaryControlRecord(ControlRef theControl, AuxCtlHandle *acHndl)
  511. ;
  512.     IF ¬ GENERATINGCFM THEN
  513.         _GetAuxiliaryControlRecord:    OPWORD    $AA44
  514.     ELSE
  515.         IMPORT_CFM_FUNCTION    GetAuxiliaryControlRecord
  516.     ENDIF
  517.  
  518.     ENDIF
  519. ;
  520. ; pascal void SetControlColor(ControlRef theControl, CCTabHandle newColorTable)
  521. ;
  522.     IF ¬ GENERATINGCFM THEN
  523.         _SetControlColor:    OPWORD    $AA43
  524.     ELSE
  525.         IMPORT_CFM_FUNCTION    SetControlColor
  526.     ENDIF
  527.  
  528. ; typedef SInt16             ControlDefProcMessage
  529.  
  530. drawCntl                        EQU        0
  531. testCntl                        EQU        1
  532. calcCRgns                        EQU        2
  533. initCntl                        EQU        3
  534. dispCntl                        EQU        4
  535. posCntl                            EQU        5
  536. thumbCntl                        EQU        6
  537. dragCntl                        EQU        7
  538. autoTrack                        EQU        8
  539. calcCntlRgn                        EQU        10
  540. calcThumbRgn                    EQU        11
  541. drawThumbOutline                EQU        12
  542.  
  543. ;_________________________________________________________________________________________________________
  544. ;    
  545. ; • MAIN ENTRY POINT FOR 'CDEF'
  546. ;
  547. ;_________________________________________________________________________________________________________
  548. ;    
  549. ; • CONSTANTS FOR DRAWCNTL MESSAGE PASSED IN PARAM
  550. ;
  551. ;_________________________________________________________________________________________________________
  552. kDrawControlEntireControl        EQU        0
  553. kDrawControlIndicatorOnly        EQU        129
  554.  
  555. ;_________________________________________________________________________________________________________
  556. ;    
  557. ; • CONSTANTS FOR DRAGCNTL MESSAGE PASSED IN PARAM
  558. ;
  559. ;_________________________________________________________________________________________________________
  560. kDragControlEntireControl        EQU        0
  561.  
  562. ;_________________________________________________________________________________________________________
  563. ;    
  564. ; • DRAG CONSTRAINT STRUCTURE PASSED IN PARAM FOR THUMBCNTL MESSAGE (IM I-332)
  565. ;
  566. ;_________________________________________________________________________________________________________
  567. IndicatorDragConstraint RECORD    0
  568. limitRect                 ds     Rect    ; offset: $0 (0)
  569. slopRect                 ds     Rect    ; offset: $8 (8)
  570. axis                     ds.w   1        ; offset: $10 (16)
  571. sizeof                     EQU *            ; size:   $12 (18)
  572.                         ENDR
  573.  
  574. ; typedef struct IndicatorDragConstraint  IndicatorDragConstraint
  575. ; typedef IndicatorDragConstraint  *IndicatorDragConstraintPtr, **IndicatorDragConstraintHandle
  576. ;_________________________________________________________________________________________________________
  577. ;
  578. ; • OLD ROUTINE NAMES
  579. ;
  580. ;   These are provided for compatiblity with older source bases.  It is recommended to not use them since
  581. ;     they may removed from this interface file at any time.
  582. ;
  583. ;_________________________________________________________________________________________________________
  584.     IF OLDROUTINENAMES  THEN
  585.  
  586. kNoHiliteControlPart            EQU        0
  587. kInLabelControlPart                EQU        1
  588. kInMenuControlPart                EQU        2
  589. kInTriangleControlPart            EQU        4
  590. kInButtonControlPart            EQU        10
  591. kInCheckBoxControlPart            EQU        11
  592. kInUpButtonControlPart            EQU        20
  593. kInDownButtonControlPart        EQU        21
  594. kInPageUpControlPart            EQU        22
  595. kInPageDownControlPart            EQU        23
  596. kInIndicatorControlPart            EQU        129
  597. kReservedControlPart            EQU        254
  598. kControlInactiveControlPart        EQU        255
  599.  
  600.     ENDIF
  601.     ENDIF ; __CONTROLS__
  602.